home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_09_12
/
9n12120a
< prev
next >
Wrap
Text File
|
1991-11-04
|
507b
|
35 lines
LISTING 1:
File: "important.h"
struct _an_important_object
{
int one_member;
char another_member;
....
};
typedef struct _an_important_object *AN_IMPORTANT_OBJECT;
/* Function prototypes */
AN_IMPORTANT_OBJECT their_function(void);
void another_function(AN_IMPORTANT_OBJECT);
User file:
#include "important.h"
my_func()
{
AN_IMPORTANT_OBJECT my_object;
my_object = their_function();
...
another_function(my_object);
...
}